import Vue from 'vue'
import VueRouter from 'vue-router'

const WorkTake = () => import('views/workTake/workTake');

// 1.安装插件
Vue.use(VueRouter);

// 2.创建router
const routes = [
    {
        path: '',
        redirect: '/home'
    },
    {
        path: '/home',
        component: WorkTake
    }
]
const router = new VueRouter({
    routes,
    mode: 'history'
})


export default router
